/* 频道请求模块 */
import request from '@/utils/request'
export const getAllchannelAPI = params => {
  return request({
    method: 'GET',
    // url小写
    url: '/v1_0/channels',
    params: params

  }
  )
}
/* 添加频道 */
export const addchannelAPI = channel => {
  return request({
    method: 'PATCH',
    // url小写
    url: '/v1_0/user/channels',
    data: { channels: [channel] }

  }
  )
}

/* 删除频道 */
export const deletechannelAPI = channel => {
  return request({
    method: 'DELETE',
    // url小写
    url: `/v1_0/user/channels/${channel}`

  })
}
